import axios from 'axios';
import {patchDataForm,fetch,postData,postForm,postJson,postPatch,postImg,deleteAjax} from './../config/httpService';

let baseUrl = 'http://renlidata.xkh520.com:3369/';

export function userLogin(body) {
    return postForm(baseUrl + 'login/admin-login',body)
}

export function getIndexData() {
    return postForm(baseUrl + 'common/index')
}

export function getDataList(body) {
	return postForm(baseUrl + 'common/get-list-by-condition',body)
}

export function createData(body) {
	return postForm(baseUrl + 'common/update-or-create-data',body)
}

export function userInfo(body) {
    return postForm(baseUrl + 'back/user-info-cont', body)
}

export function uploadImg(body) {
    return postForm(baseUrl + 'base/oss-upload-file',body)
}

export function settingsList(body) {
    return postForm(baseUrl + 'common/get-info-by-id',body)
}

export function login(body) {
    return postForm(baseUrl + 'login/admin-login',body)
}

export function getPartnerData(body) {
    return postForm(baseUrl + 'common/partner',body)
}

export function getPlaceData(body) {
    return postForm(baseUrl + 'common/place',body)
}

export function getSelfData(body) {
    return postForm(baseUrl + 'common/self',body)
}

export function attribute(body) {
    return postForm(baseUrl + 'common/update-attributes',body)
}